﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace ModelLibrary
{
    [XmlRoot("LiInstances")]
    public class LiInstances : List<Instance>
    {
        public LiInstances()
        {

        }

        public LiInstances(List<Instance> li)
        {

        }
        public bool HasTask(string taskName)
        {
            for (int i = 0; i < this.Count; i++)
            {
                if (this[i].taskName == taskName)
                    return true;
            }
            return false;
        }
        public bool HasTask(int taskIdKey)
        {
            for (int i = 0; i < this.Count; i++)
            {
                if (this[i].idKey == taskIdKey)
                    return true;
            }
            return false;
        }
    }
}
